package cn.edu.zafu.bigdata.x.zcy_0217;



public class TestStaticDemo {
    public static void main(String[] args) {
        // 创建多个 StaticDemo 类的实例
        StaticDemo obj1 = new StaticDemo();
        StaticDemo obj2 = new StaticDemo();
        StaticDemo obj3 = new StaticDemo();

        // 调用 StaticDemo.displayCount() 静态方法，验证实例创建次数
        StaticDemo.displayCount();

        // 观察程序的执行顺序，并总结静态初始化块、实例初始化块、构造方法、静态方法的执行顺序
    }
}